
            <div class="container">
				<div id="store-list">
				<div class="page-header" style="position:relative;">
					<h3>Store</h3>
				</div>
					<!--<div class="row-fluid">
						<div class="span10">
							<ul class="horizontal">
                            <?php if($this->tank_auth->is_url('store/add')){ ?>
								<li><a href="<?php echo site_url('store/add');?>" class="btn">Add Store</a></li>
                            <?php } ?>
							</ul>
						</div>
					</div>-->

					<?php
					if(empty($hasil)){
						echo "<table class='table table-striped'>
							<thead>
								<tr>
									<td>Store Name</td>
									<td>Store Type</td>
									<td>Logo</td>
									<td>Telephone</td>
									<td>Hp</td>
									<td>Address</td>
								</tr>
							</thead>
						</table>";
					}else{
					?>
						<table class="table table-striped">
							<thead>
								<tr>
                                	<td width="1" style="text-align: center;"><input name="checkbox[]" id="checkbox[]" class="chk_boxes" type="checkbox" value="$row -> toko_id" /></td>
									<td>Store Name</td>
									<td>Store Type</td>
									<td>Logo</td>
									<td>Telephone</td>
									<td>Hp</td>
									<td>Address</td>
                                    <?php if($this->tank_auth->is_url('store/updatedata') || $this->tank_auth->is_url('store/deletedata')){ ?>
										<td>Action</td>
                                    <?php } ?>
								</tr>
							</thead>
							<?php foreach ($hasil as $row): ?>
							<tr>
                            	<td width="1" style="text-align: center;"><input name="checkbox[]" id="checkbox[]" class="chk_boxes1" type="checkbox" value="$row -> toko_id" /></td>
								<td><?php echo $row -> nama_toko ?></td>
								<td><?php echo $row -> jenis_toko ?></td>
                                <?php if($row -> logo == NULL){ ?>
								<td><img style="padding:3px; border:#666 1px solid; " width="40px" height="40px" src="/commerce/assets/img/no-image-100x100.png"/></td>
                                <?php }else{ ?>
                                <td><img style="padding:3px; border:#666 1px solid; " width="40px" height="40px" src="/commerce/data/thumb/<?php echo $row -> logo?>"/></td>
                                <?php } ?>
								<td><?php echo $row -> telepon ?></td>
								<td><?php echo $row -> hp ?></td>
								<td><?php echo $row -> alamat ?></td>
								<?php if($this->tank_auth->is_url('store/updatedata')){ ?>
                                    <td><?php echo anchor('store/updatedata/'.$row->toko_id, '<i class="icon-edit"></i>', 'title = "Edit"') ;?>
                                <?php } ?>
                                <?php if($this->tank_auth->is_url('store/deletedata')){ ?>
                                    <?php echo anchor('store/deletedata/'.$row->toko_id, '<i class="icon-trash"></i>', 'title = "Delete" onclick="return confirmDelete();"'); ?></td>
                                <?php } ?>       
							</tr>
							<?php endforeach; ?> 
						</table>
					<?php
					}
					?>
                    <center>
                      <?php echo $pagination; ?>
                    </center>
				</div>
			</div>
        
         <script type="text/javascript" language="javascript">
			$(function() {
  				$('.chk_boxes').click(function(){
					var chk = $(this).attr('checked')?true:false;
					$('.chk_boxes1').attr('checked',chk);
				});
			});
		</script> 
		
		